import { createRouter, createWebHistory } from "vue-router";
import { Route404, routesDefault } from "./localRouters";

const router = createRouter({
  history: createWebHistory(),
  routes: routesDefault,
});

const whiteList = routesDefault.map((e) => e.name).concat([Route404.name]);

export default router;
export { whiteList };
